\chapter{Embedding the Language}
\section{test}
\subsection{test2}

this is in the include 

\index{cheese!brie}
\index{test}